/***
 * Brian Hession -- February 15, 2013
 * 
 * CApp
 *
 * Changelog
 * Date				Changes
 * 2/15/2013		Initial version
 *
 */

#ifndef CAPP_H
#define CAPP_H

#include <SDL/SDL.h>
#include "character/playerworld.h"
#include "character/player.h"
#include "character/fighter.h"

class CApp {
	public:
		CApp();
		int onExecute();
		bool init();
		void calcDelta();
		void onLoop();
		bool render();
		void onEvent( SDL_Event &event );
		void sync( int fps );
		void updateFPS();
		void onCleanup();
	private:
		bool running;
		SDL_Surface* screen;
		Fighter* p;
};

#endif

